public class GPSDecorator extends MachineDecorator {
    public GPSDecorator(AgriculturalMachine machine) {
        super(machine);
    }
    
    @Override
    public void operate() {
        super.operate();
        addGPSFunction();
    }
    
    private void addGPSFunction() {
        System.out.println("GPS定位功能启用: 实时追踪农机位置");
    }
    
    @Override
    public String getStatus() {
        return decoratedMachine.getStatus() + " (GPS已启用)";
    }
}